package Data::Semantic::URI::TestData::fax;

use strict;
use warnings;
use Test::More;


our $VERSION = '0.03';


use constant TESTDATA => (
    {
        args => {},
        valid => [ qw(
            fax:+1-212-555-1234;tsp=terrifictelecom.com
            fax:+1-212-555-1234;tsp=terrifictelecom.com;phone-context=X-COMPANY-NET
            fax:+1-212-555-1234;tsub=0123456789-.();tsp=terrifictelecom.com;phone-context=X-COMPANY-NET
            fax:+123-456-789;isub=123(456)
            fax:+12345
            fax:+1234567890;phone-context=+1234;vnd.company.option=%22foo%22
            fax:+1234567890;phone-context=+1234;vnd.company.option=foo
            fax:+123456;postd=***
            fax:+12345;tsub=0123456789-.()
            fax:+1234;option=%22!%22
            fax:+1234;option=%22%5C!%22
            fax:+1234;option=%22%5C%22%22
            fax:+1234;option=%22bar%22
            fax:+358-555-1234567
            fax:+358-555-1234567;postd=pp22
            fax:+358-555-123456;tsub=0123456789-.()7
            fax:+456-7890;phone-context=213;phone-context=213
            fax:0w003585551234567;phone-context=+3585551234
            fax:456-7890;phone-context=213
            fax:456-7890;phone-context=213;phone-context=213
            fax:456-7890;phone-context=X-COMPANY-NET
            fax:456-7890;tsub=0123456789-.();phone-context=213
            fax:456-7890;tsub=0123456789-.();phone-context=X-COMPANY-NET
        ) ],
        invalid  => [ qw(
            fax:+1-800-RUN-PERL
            fax:+1234;option=%22%22%22
            fax:+1234;option=%22%5C%22
            fax:456-7890
            fax:456-7890;phone-context=213;tsub=0123456789-.()
            fax:456-7890;tsub=213;
            fax:456-7890;tsub=213;tsub=456
        ) ],
    },
    {
        args => { nofuture => 1 },
        valid => [ qw(
            fax:+1-212-555-1234;tsp=terrifictelecom.com
            fax:+1-212-555-1234;tsp=terrifictelecom.com;phone-context=X-COMPANY-NET
            fax:+1-212-555-1234;tsub=0123456789-.();tsp=terrifictelecom.com;phone-context=X-COMPANY-NET
            fax:+123-456-789;isub=123(456)
            fax:+12345
            fax:+123456;postd=***
            fax:+358-555-1234567
            fax:+358-555-1234567;postd=pp22
            fax:+456-7890;phone-context=213;phone-context=213
            fax:0w003585551234567;phone-context=+3585551234
            fax:456-7890;phone-context=213
            fax:456-7890;phone-context=213;phone-context=213
            fax:456-7890;phone-context=X-COMPANY-NET
            fax:456-7890;tsub=0123456789-.();phone-context=213
            fax:456-7890;tsub=0123456789-.();phone-context=X-COMPANY-NET
        ) ],
        invalid  => [ qw(
            fax:+1-800-RUN-PERL
            fax:+123-456-789;isub=123(456);isub=123(456)
            fax:+123-456-789;isub=A23(456)
            fax:+1234567890;phone-context=+1234;vnd.company.option=%22foo%22
            fax:+1234567890;phone-context=+1234;vnd.company.option=foo
            fax:+12345;tsub=foo
            fax:+1234;option=%22!%22
            fax:+1234;option=%22%22%22
            fax:+1234;option=%22%5C!%22
            fax:+1234;option=%22%5C%22%22
            fax:+1234;option=%22%5C%22
            fax:+1234;option=%22bar%22
            fax:+358-555-1234567;phone-context=+1234;postd=pp22
            fax:1234567890;phone-context=+1234;vnd.company.option=%22foo%22
            fax:1234567890;phone-context=+1234;vnd.company.option=foo
            fax:1234;option=%22!%22
            fax:1234;option=%22%5C!%22
            fax:1234;option=%22%5C%22%22
            fax:1234;option=%22bar%22
            fax:456-7890
            fax:456-7890;tsub=213;
            fax:456-7890;tsub=213;tsub=456
        ) ],
    },
);


1;


__END__

{% PROCESS complete/semantic_testdata %}
